package com.spj;

import com.spj.pojo.Boy;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author :spj
 * @description:
 */
public class DiTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("configContext.xml");
        Boy boy = applicationContext.getBean("boyTwo", Boy.class);
        System.out.println(boy);
    }
}
